Fix usage of deprecated method

Just a few leftovers