try to fix corrupted frames