Fix require problem and missing use