Fix call deprecated functions.