fix path ditection