fix condition in single post display routing