Fix bug in the new frame decoder