Fix module bug and absolute paths