fixed attribute checking