worked a bit more on offset correction. It works better than before, however if you collide with a static object from the left and press up and right at the same time you jump through the object. The same thing happens when colliding from above and pressing left.