fixes #968 -