Continued fixes #300 by fixing a backend issue that cropped up.

Also includes a test case.