Fix by replacing object_getClass() with -class