Fix for generate difference script [2]