fix issue when data types don't match