Kmelia validation bugfixes : #3958 and #3942