fix inbox bug when user has no messages