Fixes issue with sending chat messages using wrong resource ID.