fix argument handling
fix script error