Obstacle collision check bug fixed