fix bad template according to the slug