Attempted to fix bug in Jailing