fix jail bugs