fixed bitrate calculation error