fix gateway response validator