Fixes pathing and errors