FIX frame bug