fix a bug introduced in 31bcb19