bugfix for #2645

'doh