Fix deprecated function name