fix path not finishing