Fix and optimize SHOW_FRAME parsing.