Removed title_id variable, using title instead to avoid ruby warning and keep functionality.