fixed php notice undefined property