Fix a bug that items are not displayed sometimes