Fixed a bug that empty view remains