Thread Creation Bug Fix