fixed a bug in labelMontage