Fixed bug in custom script
Fixed bug in custom script