I cant really say what the issue is without seeing the script. I would recommend checking out this post as it might have an answer.