fix #4,port register error