Fixing bug in updating invite sent count.