possible nil value fix
rare double frame fix