Script gives error in Padminis but not mine -->