Maybe a restore will help
Do you need an unlock aswell? If so create a custom FW file with sn0wbreeze to preserve baseband.
If not use stock 5.01.
Need to put it in pwned DFU, redsn0w can do that in extra's.
Then restore through itunes with either custom or stock ipsw.
After that re-JB with redsn0w.