fixes #324