fixed bug in script for curl