More fixes to the melonJS 1.0.0 version