In the first floor you have to reactivate production of the HK-51 (in the main console, where you can see the holo model of HK-51).
Then, in the second floor, when you're in the main room, the one where you blow up 8 HK-50, proceed on your right, toward the HK-51 lab (or something similar, beware it MUST be the HK-51, not HK-50) on the road you'll find a dead HK-50, pick the datapad on it. When you reach the HK-51 console you can download their improvements and then upload HK-47 behavior core.
Turn back. go on the left side of the factory, reach the HK-50 console and blow it up or, simply stop it (Besides, why in the hell you may select computer instead of demolition?).
All done.