bugfix for #180