Fixes whitelist to work in release mode.