this fixes #342