fixed error in require