fix inherit wrong sample