Fixed the NullPointerException in WorldUI