fixed view decoding when app is in a subdirectory