fix scritp's load order bug