fix attr matching