Missing "my" on $last_jid.