fix for modulation bugs