getSize was returning null in some cases

Don't know why, but sometimes getSize() returns null... changing to 'size' fixed it for me
Merge pull request #4 from flaviokz/master

getSize was returning null in some cases