Fixed bug with pathing