fixed serial that was not stable on ref