Good point, will use a static boolean to guard this code block only run once.