bug in require