fix an issue with occasional disappearing of cells during orientation change