fix bug when find all returns nil