fixes #394