* Fixed some errors in the script API