Fix order of scripts