Error: insufficient content written