Fix issue on attr method