fix stupid assert
scripted update of code from master at 7e37642 fix stupid assert