Fixed undefined size error