fixed bug in inmate_details