Fix empty timestamps and delete inserted category when needed --> Client