fix case when bound vars