Bugfixes when creating a new endpoint
Merge pull request #1323 from benjamij/moodle-updates

Bugfixes