Fixes deprecated method