fixed error with null brains