Fixed export bugs. Empty equations are automatically deleted