Fix deprecated usage