fix mess and no sorting on managed tab