For debug, useLegend and useTab you don't need the " ? true : false" so please remove.