window size canvas reverted