Fixed resize crash