fixed error in Application