fix path that causes endless loop