fixed an error with script due to left over code, script should work again now