fix script registration bug