Fix default result_id not being set in custom views