fixed a bug in flush.go