bug fix: now on top is not counting