fix hardware disable flag was ignored