Fix canvas re-size.