Fixed some error when getting the parameters values