Fixed flush operation, refs #12