fix frame bug and finish load protrol