Fix

Fixed issues with different window widths.