Minor fix in deprecated method