fixed compiler warnings.