fix error overflow