Fix check for gls