Fix for generate difference script