fixes #327