fix register ios6