fix class_exists error