fixed bug in path loading