bugfix call a function in empty().