Fix incorrect use of partial

Fixes #1002
Fix indentation error reported by syntastic
Merge pull request #1005 from ZyX-I/fix-1002

Fix incorrect use of partial