Fixes script.