fix dtypes