Make sure we don't mixup double and integer type (while editing a document)