An AME palletizing machine had been installed to palletize bottles/stack them on plastic trays. An employee noticed that the machine had trays that were sideways. He opened the gate and entered the machine to straighten the trays. The crane inside the machine activated while he was inside, striking him and crushing him against the side of the machine.