fix some mistakes
error with mongodb