Fixed the layer types parsing (again).