fix primitives.default error
convert empty string to None instead of Object.defaults