fix Frame allocation