fixing issue with invalid require