Fixed screen resizing issues.