Fixes syntax errors in LayerManager methods