fixes #396