fix bug in brain