Improved marker clearing