Can you post your script? Maybe something else is causing this error...