fixing path highlighting