fixes #388