Fix crash due to usage of old mod_name variable which doesn't exist anymore