fix generateRequireHeader