fix bug after remove empty view