more attempts at fixing the drawing bug