 							first = 1
 							next = 1
 							removeFromBuffer(0, buffer.length)
-							adapter.topPadding(0)
-							adapter.bottomPadding(0)
+							builder.topPadding(0)
+							builder.bottomPadding(0)
 							pending = []
 							eof = false
 							bof = false

								$scope.$on '$destroy', () ->
									template.remove()

								adapter =
									viewport: viewport
									topPadding: topPadding.paddingHeight
									bottomPadding: bottomPadding.paddingHeight

							viewport.scrollTop()

						shouldLoadBottom = ->
							!eof && builder.bottomDataPos() < bottomVisiblePos() + bufferPadding()

						clipBottom = ->
							# clip the invisible items off the bottom
							bottomHeight = 0 #builder.bottomPadding()
							overage = 0

							for i in [buffer.length-1..0]
