fix double assignment to static sharedInstance variable