fix #24 with read fields if there is a problem