fix #2812: attributes parsing