adjust script load ordering
minor bugfix