Fixed a bug in discover for CORDEX