Partial bugfix to cylinder collision detection