Fixes unmarking all marked elements