Map bug

Solving problem of map clearing in the simplest way!