Fixed crash #5511.