Fixed a few errors in Jail and DocScanner