Fix deprecated warning not displayed.