fixed typo addLayer