Fixed bug on client script