added handling exception, problem with text map is left