Fix a bug when no srs has been supplied