fix domain and format bug