Fixed access of undefined property