Fixed ambiguous templates.