It's somewhat ambiguous what exactly the correct behavior is supposed to be, I'm just picking something more or less reasonable here.