GUI button not working

I am getting a null exception error with the following code: void onGUI(){

	Debug.Log ("fly");
	//GUI.Button(new Rect(20,40,80,20), "Level 1");
	//GUI.Button (new Rect (20, 50, 300, 40), "Start game");
	if(GUI.Button (new Rect(50, 100, 20, 10), "Start game")){
		Application.LoadLevel("terrain for car");
		//reloads the level called terrain for car
	}
	
	//if(GUI.Button (new Rect(500,50,300,40), "Quit")){
	//	Debug.Log("End");
	//	Application.Quit();
		//ends the game
	//}
	}

Null Exception error? You shoudn’t even be getting any GUI on the screen because its OnGUI() and not onGUI().

Check the name of the level and make sure it is in the build settings (File → Build settings).