Another fix to the set_coursemodule_visible