Fix bug in code where user cannot update path