Brain chemical linked to mistake reactions