Fix flipgridx operation