Fixed init error with creating a new application;