Avoid endless frame script recursion.