Brain: Fixing minor bugs with the sample on and off functionality