[Misc] Fixed call to deprecated method