fixing scriptre