fix a bug with global + local defaults