Fix "framesList not defined" error