Try sending the message last.
That reference error. D: