fix context binding problem in `draw` method