fix attr not found error.