Fixes possible issue if marked objects exist that aren't handled at the moment