modules: fixed some function calls after module conversion