Fixed some typos in the layer module.