bug in __get() magic method