fix script binding impl