fixed id reference error to use the workout id instead of sample id