bugfix for require script