Fix error, introduced in 4a8d397fcb9b08aecad1a1dd22f3459e01df0be8

See the comments in 4a8d397fcb9b08aecad1a1dd22f3459e01df0be8 for more details.