Fix bug in paths