Fix HTP status detection