fix state machine of hole-punch case