Incorrect input array in FrameData.getFrames