Fixed layer removal functionality
Merge pull request #927 from isuftin/master

Fixed layer removal functionality