Fixed event drawing bug

Fixed #154.