I dont know if this will fix your problem, but you forgot a &quot;;&quot; after $c.getModel().<br>