controller fix for empty inbox