Fix bugs : some variables are not set to private.