fixing type in mongodb post