Removed unnescessary call to getAllVisibleItems().