Make sure you trigger spring is in its proper place and that retention pin is resting atop it. You'll need to slightly depress that retention pin while reinserting the top cover pin. Probably wouldn't hurt to hit the top of that retaining pin with a bit of gun grease if you have it handy as well as the shaft of the top cover pin before reinstalling.