Fix #61

getSize moved inside IF