try fixing require optimize bug