Go out there when they're heading up to roost for the night and keep nudging them away from the nest boxes and onto the roost. It'll take as long as it takes.
What does the inside of your coop look like? You might be able to easily nudge the perches up a few inches.