Fix bug in sometimes loading the same pins again because the offset is not increased outside of "success"