mthread fix startup crash on assert with bad logic