fixed error in loading order of application