[ldmz-export] Fixed unnoticed bug in object generation