fixed error when binding variables of same name