fix fb-root and script loading order