Fix warning in oa_core with  variable