Fixed GLAO.
Fixed idealfit case
Merge branch 'devel'