fix for ../ bug