fully fix multipass encoding