Hackery to get the right path