fix bug in flush method
Merge pull request #22 from collectrium/fix_flush_pending_save

fix bug in flush method