Fixed const issue in attr_parser