fix startup of inject_messages (thanks @hodgestar)