Fix bug #550605, thanks to Cor Bosman.