If the rafters are all same length it looks like the long wall tops have spread realign then pilot drill the ridge board and screw into the center line of the correctly positioned say right hand rafter then in the next bay into the left hand and so on then screw at a angle there opposite numbers...