fixes register modules