If you already have a script with a bug, posting it would probably be more useful than expecting somebody to guess what you're doing or writing something from scratch.