object initialization in detail view fix