fix possible crashes by using an old API