this fixes #381