fixed the script executing frame