Fixed #29 bug with empty fields array