fixing error when trying to access marks too early