fix cleaning of constants when glob exists