Fix compilation errors due to missing getFrame function