Fixed a bug that a blank item was displayed after all items are displayed.