Fix direct_to_template issues.