Fixed weird mongoose bug