Removed the old API.
Fixed the resize error.