fixes #398