Add setting param into revertFlip function for correct revert state