It's not a bug, and if you clear the map, it won't cost you any points (trust me). The gnome's behaviour has been explained in previous comments, but you might enjoy trying to figure it out on your own...