Fix usage of new API level