Bug fix in view