fix to prevent titlebar from flickering in record mode