Fixed scene changing bug