Fix #61

getSize moved inside IF
Merge pull request #62 from caseyjhol/master

Fix #61