Fixed bad conditional in migration