fix a side effect