change data to frame in error loop