fix amqp and sns plug-ins