fixed views bug on apps without views