fix broken viewport because of unknown variables