fix path before using it