Fixed Thread init and run