Bug fixed for the default sorting element