On the connector that connects the home buttons ribbon cable to the motherboard there are 4 small holes, you can use a needle head or another very thin but sturdy object to push the pins down slightly on to the ribbon cable.
Or be like me and accidentally pull off the plastic head and just manually push down the pins when they get exposed... the first option is probably better though...