fixing some bugs on inbox