Fixed the attribute discovery