fix generator chain