fix layout: script order