Fixed bug with Thread.main's parent