Fixed formatting not working with certain types