recursive method for categories inside
Fixed erasing
Bug fixes