Fixed numerous issues related to pathing.