2 fixes to favorites template and key error.