fixed a bug in Prison to support invoke-range