Fix overlay clear issue