Fix viewport resize