fix missing previous_title and next_title in template