fixed date bug in getnextcrag