bug in definition of start jail function