fixed bug in output topic