Remove unnecessary markers