Fix Empty Sample Error