bug fix for srcreg