Some corrections for scripts