* minor fix in attribute detection