bugfix: process bar code only when complet

I cannot believe I forgot this!

Signed-off-by: Zeljko <zeljko@zwr.fi>