ugly frame correction