corrects frame directory