fix bug in paths