fix error in nil view