fixed yet another dtype bug that somehow only affected when running on mac