fix check prevents access to debug