Fixed a bug that caused certain operations to transfer to a different stage. Fixed a bug that sometimes caused certain puzzles to not work properly.