fixed exception on empty view result