fix some strange errors