fixed physics collision detection. fixed #16