Fix the drawn length being incorrect