Fix the bug of Collect Earth when the PostgreSQL is not correct