Fix cookie property setting and syntax error