Fixes global options being looked up by value instead of key.