fix path resolve