fix #2846

(I know I can commit to master, but since I've been appointed to issues, I'll avoid it for now)*

#2846