fix to make deprecated script warning disappear.