fix fatal error with protected property