Fixes some pathing problems