try to fix flush error