fixing get size error