Fixed error when there are not defaultvalues