Fixed a bug in the synapse thresholds