modules: fix undefined functions