fixed bug in require statement