fix panic on unexported fields