Fix deprecated syntax.