Fixing clear areas logic