Fix flush bytes and refresh rate