Fixes bug in define

Simply wasn't working with wildcard body. Get some code coverage pedro :P