fixed reset to idle hard reset bug, switching modes properly
fixed reset to idle hard reset bug
fixed reset to idle hard reset bug