fix getSize bug for size:[true]