fixing format expression grammar