Fix inifnite loop when drawing negative numbers