Fix issue of module changing and not working.