I have the same issue. No matter how much hay I put, they root around enough, to expose the ledge.
I got some of those plastic artificial grass-type mats. They do not like those, so they never lay in those boxes.
Now, I wait until they have a pretty good nest formed. Then I carefully pick...