fix issue with getInt on counter field