There is an issue where a bed seems to be very slightly out of position and this can be fixed by simply moving the bed to the location where it's supposed to be, however the prisoner goes to their cell at night as usual.
If you're not exceeding your total cell capacity there could be an issue with security categories, for example if you have 100 maximum-security inmates but only 96 cells coded as max-sec (and none coded as shared).