fix the bug which is triggered when the  OAT certificate was wrong,and modify some hard code.