fixed some compile error