fixed outflow error