fix #231 - bugfix