Seems this happens only when repetition is carried out. With this preamble, which is equivalent to original (&#\hfil), there are no problems: #\hfil&#\hfil and this also works OK: &#\hfil&#\hfil