I dont know if this will fix your problem, but you forgot a ";" after $c.getModel().