fix trying to draw a null slice