fixes offset issue