fixed bug in adding layers