Fixed error occurring when using rabbitSend function