fix modules to use the permalink structure