fixed bug in findByCriteria method
fixed findByCriteria methods