Fixed type where logger.warning was used instead of logger.warn
Fixed issue with checking mappings.