Fix bugs in Snowflake, there is still a bug in getEndPoint()