fix bug: fast-forward badge was shown always.