fixed issue with unregister ios (undid change made cause of test case)