fixed invalid access of non-existing attribute