fix resize problem
(merge mistake?)