Fixed some compiler error