fixing serialize as a form attribute