Change type saved document