fix for width resize