fixed a bug detecting srid