fixed favorites .push() for directory template