fixed some other issues when you change resolution