Fixed generalize sample