Fixes for 2D platformers