double format bug fix