Fixed writing objects