Corrected a minor mistake

top() should be offset().top