Removed a wrong "else" which which corrupted the view index.