Fix deprecated function call

Signed-off-by: Aniket Pant <me@aniketpant.com>