Fixes problems with tablet size window