fixed incorrect handling of attribute prefixes