fix bug reading in all frames