Fixed sample initialization