FIXED BUG that makes ap not able to reload tokenAP if the last code is different from 200