fixed creating parameters string for URL