applied Sanders resize patch, fixed lower bug