fix bug on local script