Fixed undefined require issue