fix access to not existing attribute