Remove useless samples