fix script return value