fix detect application folder in view