Fixed calculation

Should load when elem top is reaching threshold,not elem bottom