fixed a bug with recursive activations