bugfix for double assign