fix attr check