fixed mongoose error