Fixing bug in direct messages