Fixed the bug in SIAM::SolveSiam