bug fix formatOptions