added missing defaults and fixed a typo