fix invalid script type