remove attachment_processing = false after flush, ill set it manually in the rails code