Fixed a number of bugs with trying to get to get data for out of range frames