fixed potential diff bug