fixed compiler errors.