Add fix to RegTest, thanks Sean