fix ref in require in fact