bug fixed for render visible items only