Add setting param into revertFlip function for correct reverting state