fix for dlopen() glitchiness