fix crash on CRS validation