Bug in migration from Moodle 1.9 solved