Fix a bug and add multiple file priority changing.