fixed bug in routed_msg