Fix buffer bar flickering issue. (#191)