Script abort fix