fix bad logic to set frame callback