Sheriff, jail staff working to fix problems noted in state inspection