Fix user whitelist code