fix drawBuffer