Fixing 'element.serialize()'