v0.22: fix HEAD switch

Signed-off-by: Eduardo Silva <edsiper@gmail.com>