fixed the error that the sample type was not set correctly on the edit screen