fixed two bugs where inappropriate format would be unnessesarily be rendered