fix mac compiler warning