fix yet another portability issue