Begin to stick correctly if top is more than zero

When top is set to more than zero, the element would still start to stick after the scroll has passed it original position + height.