Fixes error with private variable