Fix bug affecting available width method