Fixed bug in creating moment with object