fix fecs warn: script was used before it was defined