(#1) Fixes "TypeError: Cannot read property size of undefined"

This fixes issue #1 

Cheers!