Fixed writing of the detail component