fixed modular mode not working problem.