fix repeated viewport