fixed require not working on production