script doubles fix