Fixed issue #91.
Check if classes exists.