fixed problem with contribute mode not being reset