fix the bug failed to unmarshal empty content