Fixed GLAO.
Fixed idealfit case