better default value for sample 1
fix potential bug