bug fix
Bug fixing on Sd computation
Bug Fixed on stability
Merge branch 'dev'