Fix tpaccept command check