Fix the rename detection limit checking