When restarting a frame, an invisible layer became visible. The layer was invisible before runtime (visible at start is unchecked and there is on event in the event editor that turns makes the layer visible at any point in time). Going through the frame the first time, the layer is invisible, but as soon as the frame is restarted, the layer is seen.