fix warning while checking