Fix Api clazz declaration