fixed bug with .having()
Merge pull request #107 from vacay/master

squashed problems with .having()