fixes #287