Fix reset command bug

thanks nathampa0909