fixed crash bug in heighfield collision