This causes crashes for some frames