Fixed some error messages in script execution.