Solved the problem that Upper APID becomes always 0.