delete module error, still some moodle 1.9 code