fixed drawing more space than needed