fix some compile error