Fix the bug stuck in with frame payload size 0