Fixed the crash bug when attempting to swap fluids