I'm not sure why the hyphens are causing errors, but you could try using underscores_instead_of_hyphens. I know that doesn't solve the problem strictly speaking, but it'll get the job done.