fix if empty read