fixed some compiler error