fix mistakes of processing samples