Fixed a bug in converting yaml hashes to topics