Fix Exception in script