Total guess here, just from the pictures.
Looks like the solenoid mech in the top pic is missing a screw and has rotated on the remaining screw. Is there another screw hole under the mech.
Is that a rod/peg on the metal plate by the tail of your arrow ?
Could the hole in the arm of the solenoid fit over that peg if it is one ?