fix for clear not working