fix syntax on mod_register