renderer resize fix