Fixed bug that tried to start a thread that was removed