fix bug with beam staying white, see #62