bug fix in %gall