fixed range error in crack()