fix can not get size of undefined (close #62)