prevent the engine from running scripting frame twice