Fix lack of checking for class existence.
Version updated