Thank you!My chickens were doing the same thing. When we bought our coop, it had a door that led to the nesting boxes. We were able to open and close it if we wanted to. Once we started closing it when it was time to put the chickens away, they started sleeping on the roosting bard instead. We tried opening it one night after we kept closing it for a couple of weeks, and they stayed on the perch instead of going on the nesting boxes.