fixed loading the detail screen