Fixed the major bug causing PolyMeal to crash.