ensure that size is always a long value (#9)