Fix bug where directions would be added multiple times