Fixed typo
Fixed layer problems