fixed getting permalink value after save