removed my little bit of optimization. resize issue is now fixed