Fixed the order of the scripts to not throw an error