Implement moving temp documents to the real documents. (Not all properties are taken so far)
After taking custom categories the customs was not cleared.