Fix empty view flickering