fix ivar warning

fixes #3108