BUG: Fix frame assignment to use correct alignment