Fixed issue with view clearing all items