Fix deprecated syntax