The treatment of errors in the isomorphous replacement method