fixed nesting in favorites loop