Fixing path detection in view