fixes default values of non-boolean types from not being set