fix for frame-based multi-threading