fixes findOne error