Fix type default value in _getAttrs method.