fixing overflow for (old?, non-mac?)