Fix typo

s/haivng/having
Merge pull request #327 from MaxBareiss/patch-1

Fix typo