Fix incorrect use of partial

Fixes #1002