Use resolve to solve path issue