Fixed collision crash bug.