Fixes bug in define

Simply wasn't working with wildcard body. Get some code coverage pedro :P
Merge branch 'dscape-patch-1'