fix sign overwriting