fix case insensitivity of attribute tags