fix bug for Class.mergeObject