Resolve some compile error