Fixed bug#6601, thanks to S7.