fixed error in rescue script