fix bug with val def weird behavior inside of class and object + versionning