fix generator