reset handler bug fixed