Fix a bug which is introduced by splitting the method Util.initApp