fix shadow bug, apply slot select priority