Fixed bug in crack method