fixes #864

Also fairly self-explanatory, but I'll answer any questions.