Use the gate resetting function

Signed-off-by: Gerco van Heerdt <gercovanheerdt@gmail.com>