Fixed copying of code layout as there where some extra braces that should have not been there.