Moodle fixes