Fix #3270

Related: #3268, 4bdb66759c24c41fefec7952b12a0595a671eaa2