fix minor bug in _draw and _update