Why am I getting this error message on my iOS game when I change scenes?

Hi, I can’t seem to figure out this error message. I would appreciate any help.

I am creating an iOS game and when the player walks into a trigger, it will transfer him to another level (scene). Each time I remotely play each level seporately, everything is fine but when I play from one level and trigger the change level trigger, I get this error message:

MissingReferenceException: The object of type ‘GUITexture’ has been destroyed but you are still trying to access it.
Your script should either check if it is null or you should not destroy the object.
UnityEngine.GUITexture.set_pixelInset (Rect value)
Joystick.ResetJoystick () (at Assets/Standard Assets (Mobile)/Scripts/Joystick.js:97)
Joystick.LatchedFinger (Int32 fingerId) (at Assets/Standard Assets (Mobile)/Scripts/Joystick.js:115)
Joystick.Update () (at Assets/Standard Assets (Mobile)/Scripts/Joystick.js:183)

I am using the iOS first person controller for all my levels. In fact, I even made a prefab of the first person controller because I added a triggering sphere on it so that the players can change levels. Even when I used the “stock” first person controller, I still received the error. I did not change anything on any of the scripts of the mobile first person controller. The game works fine when I build it and install it on my iPhone. I just don’t like having error messages.

Thanks for any help you may give.

I want to say the object is being accessed while the scene is trying to clean up and release everything. You can try waiting until the end of frame before you load the level.

public void ChangeLevel()
{
     StartCorountine(WaitUntilEndOfFrameToLoadCoroutine("Next Level"));
}

public IEnumerator WaitUntilEndOfFrameToLoadCoroutine(string nextLevel)
{
       yield return new WaitForEndOfFrame();
       Application.LoadLevel(nextLevel);
}

Its a hack, but hey, it works.(Hopefully :P)

I think if you try to create a gameobject kept on load, that is not destroyed between the scenes, and where you can put the function that is called between the scenes. Like here "The object of type ‘GUITexture’ has been destroyed but you are still trying to access it. "