Remove actionbefore Listener, add some debug to beforesort