Fixed drawBuffer issue