fixed error where an non existing property was accessed