Fixed constant referenced as property error