Fixed user script errors.