bugfix for #189