The cause might be in different floating point precision between your and original program.