fixed issue with scheduling more than one sample at a time
merged pull