Prevent AttributeError