fix for classList toggle