Fix: Compatibility with Moodle 2.7