trying to fix ERR_CONTENT_LENGTH_MISMATCH issue