fixed issue with screen resizing