Fixed resize bug.