Fixed error with private attribute