fix attr accessor