Fixed issue with script type