fix small bug in direct messages api