He organized the rewrapping of many mummies and devised a secret hiding place for them in a narrow valley behind the Temple of Hatshepsut.
He hadn't taken into account where he was going to place the re-wrapped mummies.