Fix pre-action script