fixed FlatnessTool not releasing map grab properly