format bug fix