bug fixing for Dao::deleteByCriteria()