The sharedInstance variable should not be set before init is called.

Hi,

I found that sharedInstance variable will not be initialized properly because in init method there is a check for sharedInstance, and if it is already set return nil.
So the end result will be the sharedInstance s nil (return value from init) and initialized is set to YES.

Thanks
ZDima