Fixed minor custom object script issue