fixes #13 bug