Bugfix: clear the aliases references for every select.