fixed a curl problem