fix bug in MongoDB find Device collection