fix path resolving