galery control bugfix