fix building modules