Fix bug in the last added script