[BugFix] Fixed Thread NullPointerException