Fixed issue of wrong injection order for scripts/css preprend