Fixed app registering multiple times