fixed a mistake
scripted update of code from master at b71569d fixed a mistake